﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
   public class PreBLL
    {
       PreDAL dal = new PreDAL();
              /// <summary>
       ///发标
       /// </summary>
       /// <returns></returns>
       public List<signs> ShowSigns()
       {
           return dal.ShowSigns();
        }
       /// <summary>
       /// 删除信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public int DeletePro(int id)
       {
           return dal.DeletePro(id);
       }
       /// <summary>
       /// 添加信息
       /// </summary>
       /// <param name="p"></param>
       /// <returns></returns>
       public int Sign_Add(Model.signs p)
       {
           return dal.Sign_Add(p);
       }
              /// <summary>
       /// 显示详细信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public signs ShowSignX(int id)
       {
           return dal.ShowSignX(id);
       }
       /// <summary>
       /// 修改信息
       /// </summary>
       /// <param name="data"></param>
       /// <returns></returns>
       public int UpdateADD(signs data)
       {
           return dal.UpdateSign(data);
       }
       /// <summary>
       /// 搜索
       /// </summary>
       /// <param name="pp"></param>
       /// <returns></returns>
       public List<signs> Seletesigns(string name)
       {
           return dal.SeleteSign(name);
       }
    }
}
